<style>
<!--
.helper-float-body{
	overflow: auto;
}
.auction-winner{
	color:#a3b0b5;
}
.auction-last-time{
	color:#a3b0b5;
}
.auction-winner-price{
	color:#4a5257;
}

-->
</style>
<div class="region region-auction region-auction-shelf shelf-catetory">
    <div class='auction-search'>
		<h1 class='auction-search-header'>Hand Guns</h1>
		<div class='auction-search-options'>
			<span>Show:</span>
			<select class='auction-search-choose'>
				<option>Closing Soon</option>
				<option>Closing Soon</option>
				<option>Closing Soon</option>
				<option>Closing Soon</option>
			</select>
			<span>Items per page</span>
			<select class='auction-search-choose'>
				<option>Closing Soon</option>
				<option>Closing Soon</option>
				<option>Closing Soon</option>
				<option>Closing Soon</option>
			</select>
		</div>
	</div>
    <div class="auction-shelf-content">
    <?php  
        $this->widget('application.components.widgets.CAuctionsPool',array(
            'id'            => 'category-auction',
            'dataProvider'  => $model,
            'itemView'      => 'application.components.widgets.auctionPool.item._CAuctionItemCategory'
        ))
	?>
    </div>
    <div class="auction-shelf-footer helper-float-body">
        
    </div>
</div>

<?php 
	$html1 = $this->renderPartial('application.components.widgets.auctionPool.item._CAuctionItemCategory',array('data' =>new stdClass()),true);
	$temp1 = CJavaScript::encode($html1);
?>
<script>
	$('#category-auction .auction-pool').shelf({
		'limit':4,
		'putOnValidate':function(auction){
			if(auction.title == 'tttt'){
				return false;
			}
			return true;
		'auctionTemplate':<?php echo $temp1?>
	},


	$(function(){
		$('#category-auction .auction-pool').shelf().buildHtml();
		client.engine.config({
			'engineAuctionInfo':{
				'url':'<?php echo Yii::app()->baseUrl?>/ajax/auctionData/'
			},
			'engineShelf':{
				'url':'<?php echo Yii::app()->baseUrl?>/ajax/auctionShelf/'
				}
			}).run();
		});
	});
</script>